package com.adun.oauth2client1demo.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author Zhu Dunfeng
 * @date 2021/7/12 23:06
 */
@RestController
@RequestMapping(value ="/user")
public class Controller {

    @RequestMapping(value = "getCurrentUser")
    public Object getCurrentUser(Authentication authentication){
        return  authentication;
    }

}
